﻿namespace Oddo.Concept.Crm.Common.Presentation.Enums
{
    /// <summary>
    /// Enumeration des types d'accès à une vue
    /// </summary>
    public enum ViewAccessAttributesEnum
    {
        /// <summary>
        /// Accès non définit
        /// </summary>
        NotDefined = 0,
        /// <summary>
        /// Affichage
        /// </summary>
        Display = 1,
        /// <summary>
        /// Lecture seule
        /// </summary>
        Readonly = 2,
        /// <summary>
        /// Ajout
        /// </summary>
        Add = 4,
        /// <summary>
        /// Modification
        /// </summary>
        Update = 8,
        /// <summary>
        /// Suppression
        /// </summary>
        Delete = 16,
        /// <summary>
        /// Sauvegarde
        /// </summary>
        Save = 32,
        /// <summary>
        /// Edition (Affichage, ajout, modification, suppression, sauvegarde )
        /// </summary>
        Edit  = Display | Add | Update | Delete | Save
    }
}